package com.xintong.visualinspection.service.impl;

import java.util.List;

import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.xintong.visualinspection.bean.Permission;
import com.xintong.visualinspection.dao.master.PermissionDao;
import com.xintong.visualinspection.service.BaseService;
import com.xintong.visualinspection.service.PermissionService;

import lombok.Data;

/**
 * 文件名：UserServiceImpl
 * 版本信息：日期：2017/3/30 Copyright 江苏省交通规划设计院 Corporation 2017 版权所有.
 */
@Service
@Data
public class PermissionServiceImpl extends BaseService implements PermissionService {

    private static final org.slf4j.Logger logger = LoggerFactory.getLogger(PermissionService.class);

    private PermissionDao permissionDao;

	@Override
	public List<Permission> getPermissions(Permission permission) {
		return permissionDao.getPermission(permission);
	}

	@Override
	public void insert(Permission permission) {
		permissionDao.insert(permission);
	}

	@Override
	public void update(Permission permission) {
		permissionDao.update(permission);
	}

	@Override
	public void delete(Integer id) {
		permissionDao.delete(id);
	}

	@Override
	public List<Permission> getByRoleId(int roleId) {
		return permissionDao.getByRoleId(roleId);
	}

  
}
